package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_against;
import cn.com.api.entity.ApiU_circle;
import cn.com.api.service.base.U_circleServiceBase;
import cn.com.util.PageInfo;

/**
 * 
 */
@Service
public interface ApiU_circleService extends U_circleServiceBase {

	// 新增对象后返回记录ID
	public int U_circleInsertion(ApiU_circle u_circle);

	public List<ApiU_circle> findCirclesListPage(Map paramMap, PageInfo pageInfo);

	// 获取收藏的圈子列表
	public List<ApiU_circle> findFavoriteCircleList(String user_id, Integer type, PageInfo page);

	// 获取关注的圈子列表
	public List<ApiU_circle> findFollowCircleList(String user_id, Integer type, PageInfo page);

	// 获取推荐的圈子列表
	public List<ApiU_circle> getRecommendcircleListPage(String user_id, PageInfo pageInfo);

	// 根据经纬度获取圈子信息
	public List<ApiU_circle> getNearbycircleListPage(Map paramMap, PageInfo pageInfo);

	// 获取我的圈子列表
	public List<ApiU_circle> getmycircles(String user_id, String is_admin, PageInfo pageInfo);

	// 获取圈子信息
	public ApiU_circle findCircleInfo(Integer circleid);

	// 获取圈子举报信息
	public List<ApiU_against> getcircleagainstlist(String circleid, PageInfo pageInfo) throws Exception;

	// 删除圈子（解散圈子）
	public Map<String, Object> delCircle(String circle_id) throws Exception;

	// 创建圈子
	public Map<String, Object> createCircle(String user_id, String admin_nick, String circle_memberids,
			ApiU_circle u_circle) throws Exception;

}
